package models;

import java.util.List;
import javax.persistence.*;
import play.db.jpa.GenericModel;

@Entity
@Table(name="label")
public class Label extends GenericModel {

	@Id
	public int id;

	public String name;
	
	@ManyToMany
	@JoinTable(name = "release_label",
	joinColumns = {
		@JoinColumn(name = "label")
	},
	inverseJoinColumns = {
		@JoinColumn(name = "rel")
	})
	public List<Release> releases;
	
	public String image;
	
}
